package com.bbzn.device.client;

import com.bbzn.iotcard.client.IotcardOrderClient;
import com.bbzn.user.client.TenantClient;
import com.bbzn.user.client.UserClient;
import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import com.spring4all.swagger.EnableSwagger2Doc;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringCloudApplication
@EnableEurekaClient
@EnableFeignClients(clients = {UserClient.class, TenantClient.class, IotcardOrderClient.class})
@MapperScan("com.bbzn.device.client.dao.**")
@EnableKnife4j
@EnableSwagger2Doc
@EnableCaching
public class DeviceApplication {

	public static void main(String[] args) {
		SpringApplication.run(DeviceApplication.class, args);
	}

}
